package com.online.teaching.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:admin
 * @Description:File构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "File",value = "File")
@Table(name="file")
public class File implements Serializable {

	@ApiModelProperty(value = "",required = false)
	@Id
    @Column(name = "file_id")
	private Integer fileId;//

	@ApiModelProperty(value = "所属课程id",required = false)
    @Column(name = "teaches_id")
	private Integer teachesId;//所属课程id

	@ApiModelProperty(value = "父级id",required = false)
    @Column(name = "parent_id")
	private Integer parentId;//父级id

	@ApiModelProperty(value = "类型，0为文件，1为目录",required = false)
    @Column(name = "type")
	private Integer type;//类型，0为文件，1为目录

	@ApiModelProperty(value = "是否为父级，0表示不是，1表示是",required = false)
    @Column(name = "is_parent")
	private Integer isParent;//是否为父级，0表示不是，1表示是

	@ApiModelProperty(value = "对应的文件或者目录中文名字",required = false)
    @Column(name = "file_name")
	private String fileName;//对应的文件或者目录中文名字

	@ApiModelProperty(value = "文件存储地址，如果是目录则空",required = false)
    @Column(name = "file_address")
	private String fileAddress;//文件存储地址，如果是目录则空

	@ApiModelProperty(value = "创建时间",required = false)
    @Column(name = "gmt_create")
	private Date gmtCreate;//创建时间

	@ApiModelProperty(value = "删除时间",required = false)
    @Column(name = "gmt_modified")
	private Date gmtModified;//删除时间



	//get方法
	public Integer getFileId() {
		return fileId;
	}

	//set方法
	public void setFileId(Integer fileId) {
		this.fileId = fileId;
	}
	//get方法
	public Integer getTeachesId() {
		return teachesId;
	}

	//set方法
	public void setTeachesId(Integer teachesId) {
		this.teachesId = teachesId;
	}
	//get方法
	public Integer getParentId() {
		return parentId;
	}

	//set方法
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	//get方法
	public Integer getType() {
		return type;
	}

	//set方法
	public void setType(Integer type) {
		this.type = type;
	}
	//get方法
	public Integer getIsParent() {
		return isParent;
	}

	//set方法
	public void setIsParent(Integer isParent) {
		this.isParent = isParent;
	}
	//get方法
	public String getFileName() {
		return fileName;
	}

	//set方法
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	//get方法
	public String getFileAddress() {
		return fileAddress;
	}

	//set方法
	public void setFileAddress(String fileAddress) {
		this.fileAddress = fileAddress;
	}
	//get方法
	public Date getGmtCreate() {
		return gmtCreate;
	}

	//set方法
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	//get方法
	public Date getGmtModified() {
		return gmtModified;
	}

	//set方法
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}


}
